﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using UnityEngine;

namespace Gameplay
{
    public class ParticleManager:MonoBehaviour
    {
        public List<Transform> SwordTrails;
        public void PlayEffect(GameObject effectPrefab,Vector3 position) 
        {
            GameObject effect=Instantiate(effectPrefab,position,Quaternion.identity);
        }

        public void PlaySwordTrail(GameObject effectPrefab)
        {
            GameObject effect = Instantiate(effectPrefab, SwordTrails[0].transform.position, SwordTrails[0].rotation);
        }

        public void PlaySwordTrail(GameObject effectPrefab,int count)
        {
            GameObject effect = Instantiate(effectPrefab, SwordTrails[count].transform.position, SwordTrails[count].rotation);
        }
    }
}
